home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / DockExtenders / Locus / Source / SelectionInsPane.m < prev    next >
Text File  |  1993-04-08  |  2KB  |  121 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.  All rights reserved.
  4. */
  5.  
  6. /*
  7.     Project: Locus
  8.  
  9.     File: SelectionInsPane.m
  10.  
  11.     Description:
  12.  
  13.     Original Author: Jeremy Slade
  14.  
  15.     Revision History:
  16.         Created
  17.             V.101    JGS    Fri Mar  5 22:28:03 GMT-0700 1993
  18.  
  19. */
  20.  
  21. #import "SelectionInsPane.h"
  22.  
  23. #import "Globals.h"
  24. #import "ItemCell.h"
  25. #import "ItemList.h"
  26.  
  27. #import <objc/List.h>
  28.  
  29.  
  30. //// FIX: This must be made to work with tri-state buttons
  31.  
  32. @implementation SelectionInsPane : InspectorPane
  33.  
  34.  
  35. // -------------------------------------------------------------------------
  36. //   Creating, initializing
  37. // -------------------------------------------------------------------------
  38.  
  39.  
  40. + initialize
  41. {
  42.     [self setVersion:SelectionInsPane_VERSION];
  43.     return ( self );
  44. }
  45.  
  46.  
  47.  
  48. - initContent:(const NXRect *)contentRect
  49.     style:(int)aStyle
  50.     backing:(int)bufferingType
  51.     buttonMask:(int)mask
  52.     defer:(BOOL)flag
  53. {
  54.     [super initContent:contentRect
  55.         style:aStyle
  56.         backing:bufferingType
  57.         buttonMask:mask
  58.         defer:flag];
  59.     
  60.     return ( self );
  61. }
  62.  
  63.  
  64.  
  65. - awakeFromNib
  66. /*
  67.     Perform final initializations
  68. */
  69. {
  70.     return ( self );
  71. }
  72.  
  73.  
  74.  
  75. - free
  76. {
  77.     return ( [super free] );
  78. }
  79.  
  80.  
  81.  
  82. // -------------------------------------------------------------------------
  83. //   Inspecting...
  84. // -------------------------------------------------------------------------
  85.  
  86.  
  87. - (BOOL)canInspect:anObject
  88. {
  89.     return ( [anObject isKindOf:[ItemList class]] );
  90. }
  91.  
  92.  
  93.  
  94. - showCurrent:sender
  95. {
  96.     [countField setIntValue:[target count]];
  97.     
  98.     [groupLaunchSwitch setEnabled:NO];
  99.     [autoLaunchSwitch setEnabled:NO];
  100.     
  101.     return ( self );
  102. }
  103.     
  104.  
  105.  
  106. - changeSelectionGroupLaunch:sender
  107. {
  108.     return ( self );
  109. }
  110.  
  111.  
  112.  
  113. - changeSelectionAutoLaunch:sender
  114. {
  115.     return ( self );
  116. }
  117.  
  118.  
  119.  
  120. @end
  121.